const state = {
    uploadImg: []
}
const mutations = {
    SET_UPLOAD: (state, path) => {
        if (path.isUpload) {
            state.uploadImg.push(path)
        } else {
            state.uploadImg = []
        }
    }
}
const actions = {
    upload({ commit }, path) {
        commit('SET_UPLOAD', path)
    }
}
export default {
    namespaced: true,
    state,
    mutations,
    actions
}